package javacvtest.sqladminserver.DTO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SqlDatabaseDTO {
    private String dbUrl;
    private String dataUser;
    private String dbName;
    private Integer dbPort;
    private String dbUserName;
    private String dbPassword;
    private String dbDataBase;
    private String sql;

    public String getDbDatabase(){
        dbDataBase ="jdbc:mysql://" + dbUrl + ":" + dbPort+"/"+ dbName;
        return dbDataBase;
    }
}
